namespace Sidvall.UI.Wpf
{
	public class SystemContext
	{
		#region Public Members

		public System.Windows.Window MainWindow { get; set; }

		#endregion
		#region Factory Members

		#region Current

		private static readonly object _Mutex = new object();
		private static volatile SystemContext _Current;
		public static SystemContext Current
		{
			get
			{
				SystemContext item;

				if (_Current == null)
				{
					lock (_Mutex)
					{
						if (_Current == null)
						{
							item = new SystemContext()
							{
							};
							_Current = item;
						}
					}
				}
				return _Current;
			}
			set
			{
				lock (_Mutex)
				{
					_Current = value;
				}
			}
		}

		#endregion

		#endregion
		#region Constructors

		public SystemContext()
		{
		}

		#endregion
	}
}